package br.com.techfor.hibernate.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;

/**
 * 
 * @author alex.amaral
 * 
 */

public class HiberntateUtil {

	private static final SessionFactory factory;

	static {
		AnnotationConfiguration cfg = new AnnotationConfiguration();
		cfg.configure();
		factory = cfg.buildSessionFactory();

	}

	public static SessionFactory getFactory() {
		return factory;
	}

}
